﻿<Window x:Class="Microsoft.DevDiv.Wpf.Samples.DrawVisualSample.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Microsoft.DevDiv.Wpf.Samples.DrawVisualSample"
    Title="Window1">
  <DockPanel LastChildFill="True">
    <GroupBox Header="Description" DockPanel.Dock="Top">
      <Expander IsExpanded="True">
        <TextBlock TextWrapping="Wrap">
          This sample application shows the performance difference between
          Visuals captured with RenderTargetBitmap and Visuals captured as Drawings<LineBreak />
          Click the transition button rapidly while watching CPU and memory usage for both transition modes.
        </TextBlock>
      </Expander>
    </GroupBox>

    <GroupBox Header="Transition Controls" DockPanel.Dock="Top">
      <WrapPanel Margin="3">
        <TextBlock x:Name="transitionModeText" Margin="3">
          Unknown transition mode
        </TextBlock>
        <Button Click="Handle_ChangeMode_Clicked" Margin="3">
          Toggle transition mode
        </Button>
        <Button Click="Handle_ChangeContent_Clicked" Margin="3">
          Transition
        </Button>
      </WrapPanel>
    </GroupBox>

    <local:SlideTransitionDecorator x:Name="transitionHost" Margin="3">
      <Button>This is a button</Button>
    </local:SlideTransitionDecorator>
  </DockPanel>
</Window>
